package logic;


public class Operation{
    private String id;
    private String domain;
    private String type;
    
    public Operation(String id, String domain, String type){
		this.id=id;
		this.domain=domain;
		this.type=type;
    }

    public String getId(){
		return this.id;
    }
    
    public void setId(String id){
    	this.id=id;
    }

    public String getDomain(){
    	return this.domain;
    }
    
    public void setDomain(String domain ){
    	this.domain=domain;
    }

    public String getType(){
    	return this.type;
    }
    
    public void setType(String type){
    	this.type=type;
    }
    
    @Override public String toString(){
    	String ts="" + type + "(" + getId();
    	if(!domain.equals(""))
    		ts+= ", " + domain + ")";
    	else
    		ts+=")";
    	return ts;
    }

}